﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Technoera.Common.QueryModel.Basic
{
    public class QueryFactory
    {
        private QueryFactory(){}

        public static AndConjunction And(IQueryItem expression1, IQueryItem expression2)
        {
            return new AndConjunction(expression1, expression2);
        }

        public static OrConjunction Or(IQueryItem expression1, IQueryItem expression2)
        {
            return new OrConjunction(expression1, expression2);
        }

        public static ScalarPropertyCriterion Prop(string propertyPath, QueryOperator op, object value)
        {
            return new ScalarPropertyCriterion(propertyPath, op, value);
        }
    }
}
